package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBasePageRecord;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBasePageRecord is a Querydsl query type for EBasePageRecord
 */
@Label("页面记录表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBasePageRecord extends RelationalPathBase<EBasePageRecord> {

    private static final long serialVersionUID = 233158234;

    public static final QBasePageRecord basePageRecord = new QBasePageRecord("base_page_record");

    public class PrimaryKeys {

        public final PrimaryKey<EBasePageRecord> primary = createPrimaryKey(id);

    }

    public final StringPath exitPage = createString("exitPage");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final DateTimePath<org.joda.time.DateTime> inPageTime = createDateTime("inPageTime", org.joda.time.DateTime.class);

    public final StringPath inUrl = createString("inUrl");

    public final StringPath ip = createString("ip");

    public final DateTimePath<org.joda.time.DateTime> outPageTime = createDateTime("outPageTime", org.joda.time.DateTime.class);

    public final StringPath url = createString("url");

    public final PrimaryKeys pk = new PrimaryKeys();

    public QBasePageRecord(String variable) {
        super(EBasePageRecord.class, forVariable(variable), "null", "base_page_record");
        addMetadata();
    }

    public QBasePageRecord(String variable, String schema, String table) {
        super(EBasePageRecord.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBasePageRecord(Path<? extends EBasePageRecord> path) {
        super(path.getType(), path.getMetadata(), "null", "base_page_record");
        addMetadata();
    }

    public QBasePageRecord(PathMetadata<?> metadata) {
        super(EBasePageRecord.class, metadata, "null", "base_page_record");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(exitPage, ColumnMetadata.named("exitPage").withIndex(6).ofType(Types.VARCHAR).withSize(45));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(8).ofType(Types.VARCHAR).withSize(8));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(inPageTime, ColumnMetadata.named("inPageTime").withIndex(4).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(inUrl, ColumnMetadata.named("inUrl").withIndex(7).ofType(Types.VARCHAR).withSize(45));
        addMetadata(ip, ColumnMetadata.named("ip").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(outPageTime, ColumnMetadata.named("outPageTime").withIndex(5).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(url, ColumnMetadata.named("url").withIndex(2).ofType(Types.VARCHAR).withSize(45));
    }

}

